package com.gjzhao.fmmall.service;

import com.gjzhao.fmmall.entity.ProductComments;
import com.gjzhao.fmmall.vo.ResponseResultVO;

/**
 * @Description: 商品评价Service
 * @Author: gjzhao
 * @Date Created in 2022-01-02 2:45 下午
 */
public interface ProductCommentsService {

    /**
     * 获取商品评价
     *
     * @param productId
     * @return
     */
    ResponseResultVO listProductComments(String productId);

    /**
     * 获取商品评价-分页方式获取
     *
     * @param productId
     * @return
     */
    ResponseResultVO listProductCommentsPage(String productId, int commType, int pageNum, int limit);


    /**
     * 统计商品评论情况
     *
     * @param productId
     * @return
     */
    ResponseResultVO listProductCommentsCount(String productId);


    /**
     * 添加商品评价
     *
     * @param productComments
     * @return
     */
    ResponseResultVO insertProductComments(ProductComments productComments);


}
